<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
	
  </head>
  
  <body>
  		<c:if test="${! empty error}">
  			<span style="color: red">登录失败，请重新登录！</span>
  		</c:if>
  		<h1>登录</h1>
  		<form action="usersController/login" method="post">
			登录名称:<input type="text" name="loginName" id="loginName"><br>
			登录密码:<input type="password" name="loginPwd" id="loginPwd"><br>
			<input type="submit" value="登录"><br>
  		</form>
  </body>
  
  
</html>
